package com.company.project.common.websocket;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;

/**
 *
 */
@RestController
@RequestMapping(value = "webSocket")
public class WebSocketController {

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    /**
     * 发送消息
     */
    @RequestMapping(value = "/sendMessage")
    public void sendMessage(String unique, String unique2, String message) {
        WebSocket webSocket = new WebSocket();
       // webSocket.sendMessage(unique, unique2, message);
    }

}
